-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat Implement fetch-database.ts
#788
Feat Implement fetch-database.ts
#788
Conversation
✔️ Deploy Preview for wargabantuwarga ready! 🔨 Explore the source changes: cad0913 🔍 Inspect the deploy log: https://app.netlify.com/sites/wargabantuwarga/deploys/613648ab4a50cf0007889712 😎 Browse the preview: https://deploy-preview-788--wargabantuwarga.netlify.app |
Can you help me with this one, Mas @zainfathoni? |
due to the complexity of mocking fetch that hinders us from testing fetch-database.ts
Codecov Report
@@ Coverage Diff @@
## main #788 +/- ##
==========================================
+ Coverage 84.91% 86.30% +1.38%
==========================================
Files 134 134
Lines 1425 1438 +13
Branches 455 458 +3
==========================================
+ Hits 1210 1241 +31
+ Misses 211 193 -18
Partials 4 4
Continue to review full report at Codecov.
|
while asserting the expected result through the mock file
since it's relatively faster than fetchSheets, at least for now
since fetchWbw() is an IIFE (Immediately Invoked Function Expression) which makes it harder to test while returning not so much value to the stability of the code
since fetchWbw() is an IIFE (Immediately Invoked Function Expression) which makes it harder to test while returning not so much value to the stability of the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 💯
Thanks for working on the implementation, @hanihusam! 🙏
Closes #784
Description
Implement
fetch-database.ts
to fetch from https://kcov.id/wbw-database